package com.qs.aop;

import com.qs.aop.config.AppConfig;
import com.qs.aop.service.AccountService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AopMain {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		context.register(AppConfig.class);
		context.refresh();

		AccountService accountService = context.getBean(AccountService.class);
		accountService.getAccountInfo();
	}
}
